﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TlToolBase;
using TlToolBase.InterfaceMode;

namespace TlToolCordCreate.Mode
{
    /// <summary>
    /// 配置
    /// </summary>
    public class Config : FileDataClass, IdbMode
    {
        /// <summary>
        /// 命名空间
        /// </summary>
        public string Namespace { get; set; }
        /// <summary>
        /// 命名空间保存地址
        /// </summary>
        public string SavePath { get; set; }

        /// <summary>
        /// 数据库用户
        /// </summary>
        public string dbUser { get; set; } = "root";
        /// <summary>
        /// 数据库密码
        /// </summary>
        public string dbPasswork { get; set; } = "tl123";
        /// <summary>
        /// 数据库名称
        /// </summary>
        public string dbName { get; set; } = "tool_magazine_db";
        /// <summary>
        /// 数据库地址
        /// </summary>
        public string dbIp { get; set; } = "127.0.0.1";
        /// <summary>
        /// 服务地址
        /// </summary>
        public string ServerIP { get; set; } = "127.0.0.1";
        /// <summary>
        /// 类名后缀
        /// </summary>
        public string Suffix { get; set; } = "Entity";
        /// <summary>
        /// 基础字段继承类
        /// </summary>
        public string InheritClassName { get; set; } = "EntityBase";
        /// <summary>
        /// 服务端口
        /// </summary>
        public int ServerPort { get; set; } =5005;
        /// <summary>
        /// 库标识
        /// </summary>
        public string ConfigId { get; set; }
        /// <summary>
        /// 导出位置
        /// </summary>
        /// <example>Web.Application</example>
        public string Position { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public DbType type { get; set; } = DbType.SqlServer;
    }
}